package com.sl.mes.db.dao;

import com.sl.mes.db.vo.MesOrderGoods;
import com.sl.mes.db.vo.MesOrderGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MesOrderGoodsMapper {
    long countByExample(MesOrderGoodsExample example);

    int deleteByExample(MesOrderGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MesOrderGoods record);

    int insertSelective(MesOrderGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesOrderGoods selectOneByExample(MesOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesOrderGoods selectOneByExampleSelective(@Param("example") MesOrderGoodsExample example, @Param("selective") MesOrderGoods.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    List<MesOrderGoods> selectByExampleSelective(@Param("example") MesOrderGoodsExample example, @Param("selective") MesOrderGoods.Column ... selective);

    List<MesOrderGoods> selectByExample(MesOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesOrderGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") MesOrderGoods.Column ... selective);

    MesOrderGoods selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    MesOrderGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") MesOrderGoods record, @Param("example") MesOrderGoodsExample example);

    int updateByExample(@Param("record") MesOrderGoods record, @Param("example") MesOrderGoodsExample example);

    int updateByPrimaryKeySelective(MesOrderGoods record);

    int updateByPrimaryKey(MesOrderGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int logicalDeleteByExample(@Param("example") MesOrderGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mes_order_goods
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int logicalDeleteByPrimaryKey(Integer id);
}